import request from '@/utils/request';

export async function getUserInfo() {
  return request(MC_PATH + '/api/customer/user/info', {
    method: 'GET',
  });
}

/**
 * 新增企业
 *
 * @param id
 * @return
 */
export async function createCustomer(data) {
  return request(MC_PATH + '/api/web/customer', {
    method: 'POST',
    requestType: 'form',
    data,
  });
}

/**
 * 修改企业
 *
 * @param id
 * @return
 */
export async function updateCustomer(data) {
  return request(MC_PATH + '/api/customer', {
    method: 'PUT',
    requestType: 'form',
    data,
  });
}

export async function approval(data) {
  return request(MC_PATH + '/api/web/customer/approval', {
    method: 'POST',
    requestType: 'form',
    data,
  });
}

export async function entqualification(data) {
  return request(MC_PATH + '/api/web/customer/entqualification', {
    method: 'PUT',
    requestType: 'form',
    data,
  });
}
